<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>正在跳转 - 逗先生</title>

		<meta http-equiv="Cache-Control"
			content="no-cache, no-store, must-revalidate" />
		<meta http-equiv="Pragma" content="no-cache" />
		<meta http-equiv="Expires" content="0" />
		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
		<meta name="viewport"
			content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />

		<script type="text/javascript">
window.onload = function() {
	if (isWeiXin()) {
		//var p = document.getElementsByTagName('p');
		//p[0].innerHTML = '<img id="1" width="300" height="450" src="/douxiansheng/ttttttt.png"  />';
		document.getElementById('d1').style.display = "";//显示
	} else {
		location.href = "http://101.71.3.96:8090/douyang/app/douxiansheng.apk";
	}
}
function isWeiXin() {
	var ua = window.navigator.userAgent.toLowerCase();
	if (ua.match(/MicroMessenger/i) == 'micromessenger') {
		return true;
	} else {
		return false;
	}

	window.onload = function() {
		var obj = document.getElementsByTagName("img");
		for (i = 0; i < obj.length; i++) {
			var img = new Image();
			var objImg = obj[i];
			img.src = objImg.src;
			var hRatio;
			var wRatio;
			var Ratio = 1;
			var w = img.width;
			var h = img.height;
			var maxWidth = 350;
			var maxHeight = 2048;
			wRatio = maxWidth / w;
			hRatio = maxHeight / h;
			if (maxWidth == 0 && maxHeight == 0) {
				Ratio = 1;
			} else if (maxWidth == 0) {//
				if (hRatio < 1)
					Ratio = hRatio;
			} else if (maxHeight == 0) {
				if (wRatio < 1)
					Ratio = wRatio;
			} else if (wRatio < 1 || hRatio < 1) {
				Ratio = (wRatio <= hRatio ? wRatio : hRatio);
			}
			if (Ratio < 1) {
				w = w * Ratio;
				h = h * Ratio;
			}
			objImg.height = h;
			objImg.width = w;
		}
	}

}
</script>
	</head>
	<body>
		<p></p>
		<div style="display: none;" id="d1" align="center">
			下载应用请点击右上角按钮
			<br />
			选择[
			<font color="red">在浏览器中打开</font>]
		</div>
	</body>

</html>